<%@ page language="java" contentType= "text/html" pageEncoding="UTF-8"%>
<%@include file="/include/common/griduihead1.jsp"%>
<%
	boolean bext = utils.getSessionUIType().equalsIgnoreCase("ext");
	if(bext){
		page1.setSupportExtJs(true);
	}else{
		page1.setLayout("border");
		page1.setSupportIframe(true);
		page1.getLayoutConfig().Append(",west__size:'220'");
		page1.setLoadData(true);
	}
%>
<%@include file="/include/common/griduihead2.jsp"%>
<%
	page1.getPageTitle().setTitle("fsPro 系統");
	page1.setWelcome(false);
%>
<%if(bext){%>
	<jm:script><script type="text/javascript" charset="UTF-8">
		var app = null;
		Ext.onReady(function(){
			app =  Ext.application({
				name:'PAN',
				appFolder:'/fsPro',
				controllers:[
					'IndexCtrl'
				],
				launch:function(){
					Ext.getCmp('bottom').getComponent(0).setText("當前用戶:<%=utils.getChName()%>");
				},
				autoCreateViewport:true
			});
		});
		
		if($('title').length == 0){$('head').append('<title></title>')} 
		window.document.title='fsPro 系統'; 
		
	</script></jm:script>
<%}else{%>
	<style >
		/* masks are usually transparent - make them visible (must 'override' default) */
		.ui-layout-mask {
			background:	#200 !important;
			opacity:	.20 !important;
			filter:		alpha(opacity=20) !important;
		}
	</style>
	<iframe id="frame1" name="frame1" class="ui-layout-west" width="100%" height="600" 
		frameborder="0" scrolling="auto"src="home_left.jsp" ></iframe>
		
	<iframe id="mainFrame" name="mainFrame" class="ui-layout-center" width="100%" height="600" 
		frameborder="0" scrolling="auto"	src="home_right.jsp"></iframe>
<%} %>
<%@include file="/include/common/griduiend.jsp"%>